Testing a fix for a possible bug in BGM.c