Fixed endif declaration