Fixes constructor errors