bug sgpa fixed