physics: fixed allocation bug causing blank screen