Fix for #277

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