datetime error fixed