another fix for extend