Change impassabibilty check

Ended with a bug

Signed-off-by: lg188 <lander.ghekiere@gmail.com>