fix crash caused by incomplete commit 47e9a6a807ab30baae05f4557f82d63c70108a59