bug fix with formentity