fixed bug with sge