fix bug with wait_end whose should take longer time than real job execution