fixed nullpointer on open gui with no items