Fix/wrong date check in

fix #67