Moved the call for getCabinet higher per AndHam89's suggestion.

Fixes #153