Fixed random crash + Wrong colors

The random crash was caused by code that was being executed via JNI
calls. Now the JNI call only sets a flag which is picked up by the frame
stepper and processed acordingly.