fix some issues with physics