Small corrections

Fixed cycle exit