fixed bug in poisson bracket