fixed try except