Seems context requires trailing slash, and fixed some bugs.