fixed a bug (now it's possible to send frame to client)