Fixed bug in offset method - it did not get parent offset