fix to the sample event