fixed bug with define