fixed issue with average float