syntax fix for errors hash