Fixes for sge