Put Paranthesis around the else if conditions

caching stopped crashing as much but still not working