bug fixes

fixed the bug that empty strings where added to a list, when a invalid
command was sent