fixed constant bug