add correction of empty path checking