bug fixing: "getDate "