fixed analyse error returning