Fixed error 

the parameter is not page_segment but pag_segment according to the docs