Make autostart attribute an integer