Fix if in for and empty blocks