Fixed 500 error in show_by helper, closes #1