reverted duplicated fix for #1244

fixes #1244