check if is number before adding to sum, fix #140