Fix  error 500 for relative paths