catch error that is caused by ilde