fix some Errors