fix when lock, modal wont follow link from close or cancel buton