Fixed the runtime error.