fix for brakes [by spawek]
code from garage