Fixed bug for rcp_in