fix interrupt enable during application erase (via andihofmeister)