Fixed he method not allowed constant