fixed a bug in the water mechanics