error logger fix