Fixes error when searching users