fixed measure bar loading order bug, and improved pitch selection accuracy