Fixing pasing by reference for get levels