Fixed problems when in app purchases are enabled