prime bugfix

Signed-off-by: Beni Lev <beniloew@gmail.com>