fixed a runtnime error