fix for rest API