Fixed bad wait