Handled some errors