Fixed error logger in helper