Fixed bug when moving to Android Studio