fixed issue with floating number quantity