Fix number check in findById