fixed some issues with newer versions of Django