fix wait for status