fixed define error