fixing MAB
- fix update n equation
- fix double convertion
- fix update all q and n after every execution