fixed but in getMessages