Fixed input bug, fixed command execution bug if a command returns None