Fixed array shifting

Signed-off-by: Wilco van den Brink <wilco.vandenbrink@outlook.com>