fixing #2 - deleted position too early