Fixed redeclaring issue with error.