fix the underfoor bug