fix start up condition