fixing trailing slash #314