fix redline and scaleing issue #155