Fixed some strange issues with licenses table