fix the bug of the rtems example