Fixed possible path bug