Chosen Master bug

When changing pages with a macro it changes the page but the cuelist in the chosen master window isn't updating to the new cuelist. when changing again to a new page the chosen master window does update but to the previous page. but when you choose the master again it is in the right list. anyone have a clue if it is a bug or a different way of programming?