Fix infinite loop when no expects