Fixed plugin definition & iOS issue