Fixed fatal errors.