Updated patch for 1.0.2

Signed-off-by: emanuele <emanuele45@gmail.com>