Fixed rd_open
Fixed rd_open