Fixing allowed keys check logic.
Merge pull request #351 from ycombinator/volume-fix

Fixing allowed keys check logic.