Fix static method calls with packages