Fix calculateSize error that caused tips to have wrong dimensions