Had to fix the date field as was not initialised.

My Bad