fixed issue with ptr - ptr