Fixed a bug with static method calls