Fix faulty method