Fixing a bug in loading old API specs from database