Fix different error

Fix messages date and undefined var