Added error messages when index is inferior to 0