fix issue #6. removed the old error object