handle invalid timestamp