fixes endif bug for houses