bugfix for physical engine