File I/O successful, getting negative states from segmentation