[sr-dev] git:master:9d38aa06: core: fix two errors introduced in commit #e3ecad34bb13e