Fix bug current_path() method