Increment phase before processing #52
Fix memory reset