fix crash in native view Rainbow example extension