fixed bug buttons not working