glfw target fix so it doesnt crash when the button-array contains less than 3 entries