Fixed some problems because of new libgdx version