fix assertion with undefined
add badges to readme