fix for preflight requests