fix problem with framework clear