fixes occasional ginput crashes