fixed an error in android input device