fixed refactor errors. jesus pydev, get it together.