fixing runtime problem