fixed resume

Signed-off-by: Martin Richard <martius@martiusweb.net>