fix for x extent calculation