Add check for incorrect constructor used