fix iOS5 compatible