Dont let extending reach file boundaries