Fixed some code in define