fixes recently introduced regression