-bugfix

forgot to close a function