Change `Level` logic to be backward compatible with uintptr hack.

This is the worst thing I've ever done. Please forgive me.