fix some decode logic