fix duplicate planning attempt box, also fix warning about name
trivial fixes for warnings
fix missing return value
Merge pull request #534 from mikeferguson/unduplicate_planning_attempt

fix duplicate planning attempt box, also fix warning about name
Merge pull request #535 from mikeferguson/fix_warnings

Fix warnings