Dispatch snippet must return a value

I fixed dispatch snippet because it didn't return anything by default and this could lead to many bugs and annoyances