fixed a bug in Droplet helper