Fix spell result range calc and bind to ui