Fixes truncated input error