Fix for Client and server directions inverted