fix bug to get correct definition