bugfix with running state