fixed regression bug