fixed runtime error case, 100% test coverage