fixed BALDE_APP_READ_ONLY macro