fixed a bug in PSA class