solve bugs in contact force