Fix NullPointerException in Physics