Fixed the problem displaying figures