why this if block? It looks like you're working around something but you should really not....