Fix missing key error when ordering a subnet

Closes #319