Fixed a constructor detection issue