fixed some molecule bugs