Fixed a issue with the read syscall