fixed dates error