fixing scheduler : host assignment bug