Make sure that error controller have right context