fixed CHS2LBA function