quick fix for parsing bug in stack