Ugly hack to make profile work