improved error handling of transectsModal