Fixed a bug of the method calls