fixed more runtime error