possible fix for calling flutes

pulled relevant code from everials branch, so credit to him if it works, credit to me if I broke it