Retrieving dueDate correctly but while block doesn't execute.