Fixed UO bug and error messages bug