Fixed programming error