Fix is_number method