Fix warning triggered twice and shitty style