fixed compile #512
Merge branch 'bugs/512'