fix bug with IF slides