Fixed bad defined method