hotfix for compilation error in edit post view