Fix to call constructor functions with param dedependencies in the correct order.