Fixed getters and setters in Message class