fixing trailing to lock