delayed cast fix