fixed some problems with auto-updating of modules