fixed runtime problem