Fixed incorrect transform origin calculation introduced by cfa02c985172da29a179e036b4ba82a0d5e54703