Fixed bad code.