fix bug in passing pagination parameter to media files search functions