fixed Permission Service ClasscastException