fixed algo for getNext
Merge branch 'master' of https://github.com/dykan/APUIengine.git