Some bug fixes for mb arrays