Redmine#4390: fix bad inputs