really fixed the runtime error