Fixed problem of Canvas in iOS6