Fixed bugs related to user id in graph saving code.