Fix POSITION_DIRECT control mode
Remove trailing whitespaces