fix post cannot be publish