fix button codes