fix input source width and height setting issue