Fix limits for gray