Correct behaviour of apply and sync in edge cases