fix paginator "from" to return 0 if the total is 0
remove extra spaces
Merge branch '4.0'