fix scoping in LibratoHandler

fix scoping in LibratoHandler