trade frontend fix