Px4 optical flow sensor

As when I connected px4 optical flow sensor in i2c port of pixhawk cube ,in mission planner>optional hardware>optical flow cannot be able to tick…and px4 focus screen is also not working as only in status bar.opt_mx,my are changing…but when I connected px4 optical flow sensor using usb cable to mission planner it is working fine