more complete fix for rounding issue