Fix bugs that cause order excess stock