It is not a good idea to mount GPS modul that way!!! There is not only GPS but magnetometr inside and as you know there are strong magnets in motors so they will interfere with magnetometer!!!
I tried the IOC function today, it seemed to work perfectly so it doesn't seem to bother the compass.