Fix crasher in RT testing

Change-Id: Ie5afa31a897a8716c990fd838d9758bed07e9827