fix for goback exception in directx apps