Fix problem with left amount in planning page'