fixes quantity