Fix a bug where :theme option for #paginate method doesn't work properly

fixes #566