Bug fix when compare with class based like stub object and atomic object