bgmc: check the correct pointers