ugly hack to make scoped controllers work