fixes setting current state
Merge pull request #193 from CartoDB/fix_sequence

fixes setting current state