fixes issues to run on the latest kivy.