fix for 'accept' attribute