Corrected bug in spl