fix segv due to incorrect compiler code in Piano effect