minor fix to catch error