fixed try/except error