Fixing logical error that doesnt show quantities between 0-1