added a hack to suppress region outside screen error