Fixed problem with repeating the last write size!