gdev: fix the method of context limitation