Temporary fix for size when surface size is set