fix to catch specific exception