Fix getting appoiments

Signed-off-by: Atanas Kerezov <kerezov.atanas@gmail.com>