Fixed issue with GP const generation