Changed get_offset by offset, at matrix