fixes in mag32.c