Fix deadline order