fixed the bug with receiving messages

shape and line now work