bugfix: key needs to be reset