bugfix adding several states at same time frame