Hartley told to behave himself