Fixed bug in search by id