Removed double bracket notation to resolve errors

Double brackets have been removed in the when conditionals in a attempt
to resolve a syntax error.