Fixed bug in plotRSA