fix bug with require relative