fixed except statement error catch