fixed regression bug, although it doesn't fix the regression