Fix for a bug I noticed while visually scanning the code. There are
currently no tests for this area of code yet as we don't currently have
any resource bundler plug-ins.