Update not working, looks for toMidnight but doesn't find it.