fix activity publish