fixed IFS bug