FIX: [imx] avoid potential segfault