fixed edit date bugs