small bugfix recording without opened device crashed