Fixing building if