Removes the default arguments in some methods, in order to improve the compatibility wity ruby versions under 2