fix in app purchase bug