hack to avoid fragment typeError