Fixed NPE on Android 2.1 and error message disappear after rotation