fix some issue to support ios7