fixed compile error with v7