fixed template and static paths in debug mode