Fixed uninitialized constant issue with errors