Fixed bug in palindrome