Fixed bug in submodel code for locating optimized projections