fixed bug where changes were not committed