Fixed bug in exits condact