fix param(array) scope
fix sanitize parameter
fix date check/sanitize