Fixed wrong complexity