Fix quantity edit