fix error with @Restapierrors