Remove a conditional that caused 100% CPU usage by cap shell