fixed simple runtime error