Fixed a bug where arguments weren't passed correctly in a constructor