quantity bug fixed