Fix non-header context init for device in use.