Fix bug with external caps.