Fix Runtime error