bugfix for previous