fixed a bug which made the app crash on some Android versions of HTC devices