fixed some placement bugs
fix automatic note end placement bug