Fixed error on blanking date field