Bug fix with constructor arguments