fixed error message when const variable is defined twice