fixed calculation in T.utils.getRect, fixes #17