Fixes bug in MSPR generator