Added missin $ before messages var