fix portal getItem typing