diff --git a/dongle.c b/dongle.c
index a573c75785e54ed1164e70d349355a4d7a4f362f..a05684b5924b8e154997b2c27c0a382b743402aa 100644
--- a/dongle.c
+++ b/dongle.c
@@ -642,7 +642,7 @@ int alert(struct ubus_context *ctx, struct ubus_object *obj,
 	struct blob_attr *tb[__USB_MAX];
 	char *usb_path;
 
-	blobmsg_parse(dev_policy, __USB_MAX, tb, blob_data(msg), blob_len(msg));
+	blobmsg_parse(usb_policy, __USB_MAX, tb, blob_data(msg), blob_len(msg));
 
 	if (!tb[USB_PATH])
 		goto fail;
diff --git a/dongle_infrastructure.c b/dongle_infrastructure.c
index 7bb82b8cf9183d1f225113371de7f60532be8aba..00e1302dfdf8731af078939162157b9cb0de32c0 100644
--- a/dongle_infrastructure.c
+++ b/dongle_infrastructure.c
@@ -286,7 +286,7 @@ int unlock_sim(struct ubus_context *ctx, struct ubus_object *obj,
 	struct json_object *response;
 	int rv;
 
-	blobmsg_parse(pin_policy, __UNLOCK_MAX, tb, blob_data(msg), blob_len(msg));
+	blobmsg_parse(unlock_policy, __UNLOCK_MAX, tb, blob_data(msg), blob_len(msg));
 
 	if (!tb[PUK] || !tb[UNLOCK_PIN]) {
 		debug_print("Please enter both a pin and a puk code!\n");