fix bugs related to dimension dropping