fixed bug where the preference buttons stoppped working

OOPs