Fix extent

This solves #554