Fixed run-time error