fix drawing distance to bug