fix for pattern