Fix error initializing home view