Fixed iOS5 crash