fix incorrect static id handling