fixes flash position and flash value detection in Android app