added error handling on several cases

This corrects several errors that popeed up with the auto computing of the total coverage