Making the reference valid while creating the pause menu from the back button of the option menu, solved my problem…