Fixing issue where it is possible to get in to state where phantom is not initialized