fixed empty form entity calculation issue.