fix for null endstops