add search by code fix