fixed some magnet and rotating issues