Fixed setting type of physics component.