Fixed Programming Bug