Fixes local uri check