bug fix in with_front is not array