Double Entry posted in GL table after application.

I had posted a Bank Receipt without application first, then after wards we asked the customer for the invoice detail of payment paid. Then we applied the entries offline successfully, but to our surprise after posting the application we found that there are 4 GL entries posted, which were 2 before posting the application.

Is there any hot fix for this as this does not happen in 2013 on wards and it is happening in 2009 R2.

I tried to search the form but didn’t found related issue here.