fix datastore('active') to -1