Fix endif()'s