mockDevice fix