fixng scope saving