fix 539 runtime error