fixed a problem with sending shapes