fix region lookup crash