Most likely, you didn't cook your chocolate filling long enough for it to thicken and become viscous. Just be patient, and you will notice when it becomes nice and thick.