Fix getLimits function
Removed some includes not necessary.