Fixed constructor passing wrong arguments