Bug fix: input