bug fix for read_algebraics