Bug fixed with error handling