Fixed area function to return number