fix 500 on Imagine controller