fixed for strange Django behavior