Fixed bug with staticmethod