Deadlock in StatForm fixed

Deadlock in StatForm fixed