bug fix in static extension