Fix compile error
Merge pull request #1275 from markewallace/FixCompileError

Fix compile error