fix for 1d problems