Its was just the lag. I experience things like this all of the time. I try to craft something, but end up crafting the wrong thing because the items lagged, and they were back in my inventory. In this case, you had placed four planks, and it only registered two.