fixed problem with framework.clear()