Fixed some major bugs on the DependencyObjectExtensions