Fixed Bug with designMode switch off