Base Error: function promise not in indexControl!