fix: use number equality rather than string equality