Reparing bug whit a variable, deleting get method