Fixed incorrect referencing of messages module