Click Image: Provided region has invalid coordinates in Remote desktop

i am using click image in citrix enviroments

and sometime go find and sometimes throw this error

Click Image: System.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap…ctor(Int32 width, Int32 height, PixelFormat format)
at UiPath.Vision.UiImage.FromScreenRegion(Rectangle region)
at UiPath.Core.Image…ctor(Region screenRegion)