Fixing bug on last button.