Fixes bug with mesh path checking