Fixed inputsize related bug