fixed registry problem in error.hpp
fixed error generator problems and valuefb errors.