Fixed bug in bottom up, seems to be working