fixed compile warnnings