improve STACK_LIMIT
fix bug in search form