fixed double cast