fixed atomic detection for VS