Fix for readStack() method from project