Rafael is having an excellent season and was making his 19th appearance.
"He was excellent tonight," said Ferguson.
"He came here as a young kid and was in the first team at 17 or 18.
"Of course he made a few mistakes because he is such an enthusiastic boy. But he is maturing and learning with that."