Dev. filtering in context module: fix bug when unwrapping devices