Fixed things now, the problem was with conditonals