Ok, it's way too early to test this out myself, but my only thought at this time is that perhaps the problem lies in the echo.
Try using the -m switch in the echo command and see if your behaviour still occurs.

*goes back to bed*