fixed: stop using NSError category class because an error occurred on static library