fixed regression introduced in last commit