Fix incompatibility with ionic 1.0beta