bug fixing in applock