Fix bug where initialize would not be run