fixed padlock bug