When Hamlet killed Polonius who did he think he was actually killing?

He thought he was killing Claudius.