fix defined error