crash when rift is not connected fixed