Fixed more bugs

Bounded buffer not working correctly. Not sure how to fix it