Fixed InputDbox bugs.