Fixed was wrong the name of the constructor method of classes related to ajax