user definition bug fixed