Fixed a bug where moving event to impossible date was possible