fixed spawn read