Fixes base condition in path extensions