Fixed bug in iff statement for env-personal