Replaced numberposts with posts_per_page in get_posts call