Fixed dancing bug due to class-cast error
Merge pull request #1239 from CharonInferar/ObjectServiceFix

Fixed dancing bug due to class-cast error