fix some minimal errors