Fixed error in scheduled post publishing