Fixed issues with ticks and ranges