Fix security issue in compiledevices