Improved and fixed building of the Moebius distribution