Fixed issues checking if the comments were locked.