views.ajaxviews|profileviews: Fixed some errors.

May help with #1.