Fixed wrong constructor accidentally being used.