Fix some problems in ATA Driver.