Some fixes for trik sensor