removed bug in error.