fixes bug #993

relates to this ticket:

https://github.com/Codeception/Codeception/issues/993