fixes table slicing issue