Fixed error on double insertion of intents