fix comment undefined & accept position