fix float cast exception
add logout for backend merchant