fix unread_count on json_for
build gem