assert causing issues