fixed a error, that was caused by "getPosition fix"