Fixed an edge case, thanks for reporting Niels and Kurocon