Fixed intermittent bug in next page action