fixed some errors

+ wrong try and catch fixed lol