physics: fixed ClassCastException