fixed some bugs in Physics