Fix src coordinates clipping issue