Cleaning up the binding after painting