Fixed issue where view controllers pushed on to the stack were not being assigned the stackviewcontroller object