fixed bug in LSF