fix override method bug