Yes I have tried the method you suggested. I could only connect either one slave and get the data transmitted to master. If I connect both, that's where I'm getting the error. I could only receive the one slave's data.
I have also made sure the connections are fine.