Fixed buttons not working as planned, credit goes to Ltven0mI for fixing it.