Fix for OnPageChangeListener callbacks.