Fixed the automatic updates bug