Fix locked/hidden layer messages.