Fixed problem with functions(not clearing binding)