Fixed input size restricting bug