Fixed publish issue by adding delay