Fixed a bug in on_change of gateway
Merge pull request #17 from aroraumang/feature/misc

Fixed a bug in on_change of gateway