fix for scaled legendres