Fixed runtime error.