Fixed missing escape char when checking sequence existence