Fixes #10, fix for proper checking of upfates