hack to fix mejs overflow