Fixed the GAB inverse function