Fixed error in core-ajax