Fixed bug regarding trainer view