Code has been fixed, a break-keyword were missing in gfxinterface.