Fix security error on device