Fix matrix getBottom getTop