Fix bug with passing interval for server