fixed a bug where button text came out as undefined.