fix input limits