Brake functions fixed