Fixed up issue with error logging