[repository] StaticModel: fixed calling onModelAttach [refs #24]