Strange behaviour using interrupts

static int mustBeep = 0;

sp.volatile int mustBeep = 0;