fixes initializer to use preferences in main app

This is the correct PR. Thanks! :smile: