Fixing Button Error Code