fixed problem with fig5