corrected the bug in PLSR