Fix stack like functions