Wrong condition for waiting