fix some warnnings