Fix order of operations

send correct stuff