Fixed problem with MessageDAO