fix locking modal