fix block device detection