Fix variable assets saving with wrong loader type