Fixed #319.