- Fixed confused max and offset parameter