Fixed fig inverstion