diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise
index b48e267c650579a7701cb8139d4311aed6ffbde5..bd16fa10ac6eb03221e1b3782093d11c0aebe702 100755
--- a/src/freedombone-image-customise
+++ b/src/freedombone-image-customise
@@ -880,7 +880,7 @@ make install
 
 cd /etc/bmx7
 git checkout $BMX7_COMMIT -b $BMX7_COMMIT
-if ! make build_all EXTRA_CFLAGS="-DTRAFFIC_DUMP -DCRYPTLIB=MBEDTLS_${MBEDTLS_VERSION}"; then
+if ! make build_all EXTRA_CFLAGS="-DTRAFFIC_DUMP -DCRYPTLIB=MBEDTLS_2_8_0"; then
     exit 5
 fi
 make install