Fixed faulty guard