Fixed bug of last API resource added