fix paginator "from" to return 0 if the total is 0
remove extra spaces