Fixed bug in fits reader.