fix for flatten