fixed an issue when removing stock popup