Fixed constructor errors