Fix fraction ^ bugs

Fix fraction ^ bugs