Fixed server listener

Server had mixed inputs on input.